<?php

class PageAction extends CommonAction {
	function __construct() {
        parent::__construct();
	}
	

	public function index(){	
	
   	 }
    
   	 public function detail($info=-1){
   	 	$Posts = D( 'Posts' );

   	 	$post_res = $Posts->detail ( $info,'page' );
   	 	
   		$this->is404 ( $post_res );
   	 	
   	 	$this->assign ( 'post', $post_res ); // 赋值数据集
   	 	
   	 	$this->display('detail');
   	 	
   	 }
    
}